/**
 * Created by panjiapeng on 2017/7/20.
 */
import { NgModule } from '@angular/core';
import { RouterModule,Routes } from '@angular/router';
import { WorkspaceComponent } from './workspace/workspace.component';

const approutes: Routes = [
    {path: '', redirectTo: 'workspace', pathMatch: 'full'},
    {path: 'workspace', loadChildren: './workspace/workspace.module#WorkspaceModule' }
];

@NgModule({
    exports: [ RouterModule],
    imports: [ RouterModule.forRoot(approutes)  ]
})

export class AppRoutesModule {}